{include file="header.html"}
<div id="rightTop">
  <ul class="subnav">
    <li><span>选择店铺</span></li>
  </ul>
</div>
<div class="mrightTop">
  <div class="fontl">
    <form method="get">
       <div class="left">
          <input type="hidden" name="app" value="syscard" />
          <input type="hidden" name="act" value="store" />
          店主:
          <input class="queryInput" type="text" name="owner_name" value="{$smarty.get.owner_name|escape}" />
          店铺名称:
          <input class="queryInput" type="text" name="store_name" value="{$smarty.get.store_name|escape}" />
          
          <select class="querySelect" name="sgrade" style="display: none">
            <option value="">{$lang.select_pls}</option>
            {html_options options=$sgrades selected=$smarty.get.sgrade}
          </select>
          <input type="submit" class="formbtn" value="{$lang.query}" />
      </div>
      <!--{if $filtered}-->
      <a class="left formbtn1" href="index.php?app=syscard&act=store">{$lang.cancel_query}</a>
      <!--{/if}-->
    </form>
  </div>
  <div class="fontr">{include file=page.top.html} </div>
</div>
<div class="tdare">
  <table width="100%" cellspacing="0" class="dataTable">
    <!--{if $stores}-->
    <tr class="tatr1">
      <td width="20" class="firstCell"><input type="checkbox" class="checkall" /></td>
      <td><span ectype="order_by" fieldname="store_name">店铺名称</span></td>
       <td><span ectype="order_by" fieldname="owner_name">店主</span></td>
      <td><span ectype="order_by" fieldname="praise_rate">好评率</span></td>
      <td><span ectype="order_by" fieldname="star">星级</span></td>
      <td><span ectype="order_by" fieldname="grade">等级</span></td>     
      <td><span ectype="order_by" fieldname="region_id">地区</span></td>
    </tr>
    <!--{/if}-->
    <!--{foreach from=$stores item=store}-->
    <tr class="tatr2">
      <td class="firstCell"><input type="checkbox" class="checkitem" value="{$store.store_id}" /></td>
      <td>{$store.store_name|escape}</td>
      <td>{$store.user_name|escape} | {$store.owner_name|escape}</td>
      <td>{$store.praise_rate|escape}%</td>
      <td>{$store.star|escape}</td>     
      <td>{$store.grade}</td>
      <td>{$store.region_name|escape}</td>   
    </tr>
    <!--{foreachelse}-->
    <tr class="no_data">
      <td colspan="12">{$lang.no_data}</td>
    </tr>
    <!--{/foreach}-->
  </table>
  <!--{if $stores}-->
  <div id="dataFuncs">
    <div class="pageLinks">{include file=page.bottom.html}</div>
    <div id="batchAction" class="left paddingT15">
      <input class="formbtn batchButton" type="button" value="确认选择" name="id" uri="index.php?app=syscard&act=storein&goods_id={$goods_id}" />
    
    </div>
  </div>
  <div class="clear"></div>
  <!--{/if}-->

</div>
{include file="footer.html"}